package models.dao;

import java.sql.ResultSet;

import models.util.MySqlDataAccessHelper;

public class AcEliManagerDao {
	public boolean checkexitdb(String dbname){
		boolean kq=false;
		MySqlDataAccessHelper mysql= new MySqlDataAccessHelper();
		try{
			mysql.open("admin");
			String sql="select PartnerName from ac_eli_manager where DatabaseName='"+dbname+"'";
			ResultSet rs = mysql.executeQuery(sql);
			while(rs.next()){
				kq=true;
			}
			rs.close();
		}catch(Exception e){
			e.printStackTrace();
		}finally{
			mysql.close();
		}
		return kq;
	}
}